package com.example.spring_config.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.example.spring_config.anno.PermissionVerAnno;
import com.example.spring_config.mapper.User;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService extends IService<User> {

    /**
     * 获取所有得用户
     * @return
     */
    List<User> getUserList();

    /**
     * 修改用户
     * @param user
     * @param roleList
     * @return
     */
    Boolean updateUser(User user,String roleList);

    /**
     * 获取用户的所有角色
     * @param users
     * @return
     */
    List<User> getUserRole(List<User> users);

}
